<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login Page</title>
    <script src="https://cdn.tailwindcss.com"></script>
<link href="${pageContext.request.contextPath}/static/css/login.css" rel="stylesheet">
</head>
<body>
    <div class="login-container">
        <h2 class="login-title">登录</h2>
        <form action="${pageContext.request.contextPath}/login" method="post">
            <div class="form-group">
                <label for="username">用户名:</label>
                <input type="text" id="username" name="username">
            </div>
            <div class="form-group">
                <label for="password">密码:</label>
                <input type="password" id="password" name="password">
            </div>
            <input type="submit" value="登录" class="btn btn-login">
        </form>
        <!-- 添加退出按钮 -->
        <button onclick="window.location.href='${pageContext.request.contextPath}/index'" class="btn btn-logout">退出</button>
    </div>
</body>
</html>